package com.aisile.article.controller.v1;

import com.aisile.apis.article.ApArticleContentControllerApi;
import com.aisile.apis.article.ApArticleControllerApi;
import com.aisile.article.service.ApArticleContentService;
import com.aisile.article.service.ApArticleService;
import com.aisile.model.article.pojos.ApArticle;
import com.aisile.model.article.pojos.ApArticleContent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:yry
 * @Date:2024/1/10 0010
 * @VERSON:1.0
 */
@RestController
@RequestMapping("/api/v1/article_content")
public class ApArticleContentController implements ApArticleContentControllerApi {

    @Autowired
    private ApArticleContentService apArticleContentService;


    @PostMapping("/save")
    @Override
    public ApArticleContent saveApArticleContent(@RequestBody ApArticleContent apArticleContent) {
        apArticleContentService.save(apArticleContent);
        return apArticleContent;
    }
}
